import http from '../utils/http'

export function getUserInfo(){
    return http.get("/api/auth/info");
}

export function getCode(){
    return http.get("/api/auth/code");
}

export function getKey(){
    return http.post("/api/auth/key");
}

export function login(data){
    return http.post("/api/auth/login",data);
}

export function userLoginOut(){
    return http.post("/api/auth/logout");
}

export function modifyPassword(data){
    return http.post("/api/auth/modifyPassword",data);
}
